package com.fzh.wangxiao.web.order.controller;

import com.fzh.wangxiao.utils.Result;
import com.fzh.wangxiao.web.order.service.TBizStatisticsService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/web/statistics")
public class StatisticsController {

    @Autowired
    private TBizStatisticsService tBizStatisticsService;

    @PostMapping("/statistics")
    @ApiOperation(value = "数据统计  √")
    public Result list() {
        return tBizStatisticsService.statistics();
    }

    @PostMapping("/regReport")
    @ApiOperation(value = "数据统计  √")
    public Result regReport() {
        return tBizStatisticsService.regReport();
    }

    @PostMapping("/profitReport")
    @ApiOperation(value = "数据统计  √")
    public Result profitReport() {
        return tBizStatisticsService.profitReport();
    }


}
